using System;
using System.Collections.Generic;
using System.Text;

namespace Justa.Data
{
    /// <summary>
    /// 
    /// </summary>
    /// 
    public class ColumnType
    {
        /// <summary>
        /// 
        /// </summary>
        /// 
        private string property;

        /// <summary>
        /// 
        /// </summary>
        /// 
        private string column;

        /// <summary>
        /// 
        /// </summary>
        /// 
        private ColumnTypeEnum type;

        /// <summary>
        /// 
        /// </summary>
        /// 
        /// <param name="property"></param>
        /// <param name="column"></param>
        /// 
        public ColumnType(string property, string column)
        {
            this.property = property;
            this.column = column;
        }

        /// <summary>
        /// 
        /// </summary>
        /// 
        /// <param name="property"></param>
        /// <param name="column"></param>
        /// <param name="type"></param>
        /// 
        public ColumnType(string property, string column, ColumnTypeEnum type)
        {
            this.property = property;
            this.column = column;
            this.type = type;
        }

        /// <summary>
        /// 
        /// </summary>
        /// 
        public string Property
        {
            get { return this.property; }
            set { this.property = value; }
        }

        /// <summary>
        /// 
        /// </summary>
        /// 
        public string Column
        {
            get { return this.column; }
            set { this.column = value; }
        }

        /// <summary>
        /// 
        /// </summary>
        /// 
        public ColumnTypeEnum ColumnTypeEnum
        {
            get { return this.type; }
            set { this.type = value; }
        }

        /// <summary>
        /// 
        /// </summary>
        /// 
        /// <returns></returns>
        /// 
        public override string ToString()
        {
            return string.Format("Property = {0}, Column = {1}", this.property, this.column);
        }
    }
}
